/**
 * Jaxson ajax
 *
 * Copyright Remedy Interactive, licensed under Apache version 2 license:
 *
 *  http://www.apache.org/licenses/LICENSE-2.0.html
 *
 * This notice must remain in all java source files.
 */
package org.jaxson.validation;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * @author Joe Maisel
 *
 */
public class ValidationErrors implements Serializable {
	
	private List<AbstractValidator> msgs = new ArrayList<AbstractValidator>();
	
	public void add( AbstractValidator message ){
		this.msgs.add( message );
	}
	
	public List<AbstractValidator> getErrors(){
		return msgs;
	}
	
	public int size(){
		return msgs.size();
	}
	
	private static final long serialVersionUID = 1660437051322722194L;
}
